/*
 *共用js文件
 * */
define(function(require, exports, module) {
	"use strict";
	var getGlobalList = {
		buttonInit: function(btnName) {
			$(btnName).attr("disabled", "disabled");
			$(btnName).text($(btnName).text() + "中...");
			$(btnName).addClass("btnDisabledText");
		},
		buttonReset: function(btnName) {
			$(btnName).removeAttr("disabled");
			var btnLength = $(btnName).text().length;
			$(btnName).text($(btnName).text().substring(0, btnLength - 4));
			$(btnName).removeClass("btnDisabledText");
		},
		eHistoryInit: function(contentList) {
			if($(contentList + "> li").length === 0) {
				if($(".tipsConInit").length === 0) {
					$('.mui-content #item3').append("<div class='tipsConInit'></div>");
				}
				$("html,body").height("100%");
				$(".mui-content").height("100%");
				$(".mui-content > div").height("100%");
				$("#item3").height("100%");
				$('#item3').addClass("initContentTips");
				$(".initContentTips").css("background-position", "50% 30%");
				$(".tipsConInit").css("top", "35%");
				$('.mui-content #item3 > .tipsConInit').html("还没有审批历史哦!");
			}
		}
	};
	module.exports = getGlobalList;
});